const express = require('express');
const router = express.Router();

router.get('/forCurrentUser', (req, res) => { 
    const content = [];
    for(let i = 0; i < 100; i++)
        content.push({
            id: `2019${i}`,
            branchCode: `branchCode${i}`,
            vehicleSalesOrgCode: `vehicleSalesOrgCode${i}`,
            dealerCode: `dealerCode${i}`,
            rebateNo: '100486146',
            date: '2019-09-29',
            time: '06:42:49.249',
            summary: 'summary',
            vehicleRebateTypeCode: `vehicleRebateTypeCode${i}`,
            vehicleRebateTypeName: 'DASCVBX',
            orderCode: 'FDSA-132146461235',
            changeType: 'changeType',
            rewardAmount: 65143,
            rewardedSum: 12313,
        });
    res.json({
        message: '',
        payload: {
            content,
            totalElements: 100,
        }
    });
});

router.get('/export/forCurrentUser', (req, res) => {
    res.json({
        message: '导出成功',
        payload: 'Mock导出'
    });
});


module.exports = router;
